package com.yingxue.lesson.mapper;

import com.yingxue.lesson.entity.SysPermission;

import java.util.List;

public interface SysPermissionMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

    //查询所有
    List<SysPermission> selectAll();

    //查询关联子类
    List<SysPermission> selectChild(String pid);

    // 通过 permissionIds 查询 菜单权限信息
    List<SysPermission> getPermissionByPermissionIds (List<String> ids);


}